﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Direct.Mvc;
using System.Web.Mvc;
using Direct.ApplicationModel;

namespace Direct.Server.Modules.SysAdmin.App
{
    public class SysAdminController : ServerControllerBase
    {
        [PermissionKey(SysAdminAuthKeys.Root)]
        public ViewResult Index()
        {
            ViewData["RootItem"] = ServiceLocator.GetInstance<IApplicationModelService>()
                .GetAppCommands(SysAdminConstants.ApplicationId)
                .FindItem(SysAdminMenus.Main);
            return View<SysAdminApplicationHome>();
        }
    }
}
